{template "header.html"}

<div class="note note-danger">
    <p>{dr_lang('需要手动将下单的代码放进前端模板文件之中')}</p>
</div>
<form action="" class="form-horizontal" method="post" name="myform" id="myform">
    {dr_form_hidden()}
    <div class="portlet bordered light myfbody">
        <div class="portlet-title tabbable-line">
            <ul class="nav nav-tabs" style="float:left;">
                <li class="{if $page==0}active{/if}">
                    <a href="#tab_0" data-toggle="tab" onclick="$('#dr_page').val('0')"> <i class="fa fa-cog"></i> {dr_lang('获取代码')} </a>
                </li>

            </ul>
        </div>
        <div class="portlet-body">
            <div class="tab-content">

                <div class="tab-pane {if $page==0}active{/if}" id="tab_0">
                    <div class="form-body">


                        <div class="form-group">
                            <label class="col-md-2 control-label">{dr_lang('模块目录')}</label>
                            <div class="col-md-9">
                                <p class="form-control-static">{$module.dirname}</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label">{dr_lang('详情页面的购买代码')}</label>
                            <div class="col-md-9">
                                <textarea class="form-control" style="height:300px">{$show_code}</textarea>
                                <span class="help-block">把生成的代码复制到{$module.dirname}/show.html，用于下单购买</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label">{dr_lang('购物车链接地址')}</label>
                            <div class="col-md-9">
                                <textarea class="form-control" style="height:150px">{$cart_url_code}</textarea>
                                <span class="help-block">把生成的代码复制到任意页面，用于显示购物车入口和购物车数量</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-2 control-label">{dr_lang('商品列表页加入购物车')}</label>
                            <div class="col-md-9">
                                <textarea class="form-control" style="height:150px">{$list_cart_code}</textarea>
                                <span class="help-block">把生成的代码复制到商品列表页面，用于把商品列表页面的商品加入到购物车</span>
                            </div>
                        </div>







                    </div>
                </div>



            </div>
        </div>
    </div>


</form>
{template "footer.html"}